﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace RadLogger_Pro
{
    public partial class FTP_Upload_Settings : Form
    {
        public FTP_Upload_Settings()
        {
            InitializeComponent();
        }

        private void FTP_Upload_Settings_Load(object sender, EventArgs e)
        {
            textBoxFtpUser.Text = Properties.Settings.Default.ftpUser;
            textBoxFtpPass.Text = Properties.Settings.Default.ftpPass;
            textBoxFtpUrl.Text = Properties.Settings.Default.ftpUrl;
            textBoxFtpFileName.Text = Properties.Settings.Default.ftpFileName;
        }

        private void buttonSave_Click(object sender, EventArgs e)
        {
            Properties.Settings.Default.ftpUser = textBoxFtpUser.Text;
            Properties.Settings.Default.ftpPass = textBoxFtpPass.Text;
            Properties.Settings.Default.ftpUrl = textBoxFtpUrl.Text;
            Properties.Settings.Default.ftpFileName = textBoxFtpFileName.Text;
            Properties.Settings.Default.Save();
            Close();
        }

        private void buttonCancel_Click(object sender, EventArgs e)
        {
            Close();
        }
    }
}
